package com.google.code.flabbyraffle;

import java.util.ArrayList;
import java.util.List;

public class Ticket {
    private static final String COMMA = ",";

    private String ticketId;
    private TicketNumbers ticketNumbers;

    public Ticket(String ticket) {
        String[] ticketParts = ticket.split(COMMA);
        ticketId = ticketParts[0];
        ticketNumbers = new TicketNumbers(ticketParts[1]);
    }

    public String getId() {
        return ticketId;
    }

    public List<Integer> getTicketNumbers() {
        return ticketNumbers;
    }
}
